
.cover{
    width: 100%;
    height: 100%;
    
    background-image: url("../pic/bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    position: absolute;
    z-index: 1;

    filter: blur(15px);
}

.client-container{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main{
    width: 850px;
    height: 640px;
    background-color: rgb(238, 238, 238);
    border-radius: 5px;
    display: flex;
    z-index: 2;
}

.main .left{
    width: 240px;
    height: 100%;
    background-color: rgb(46, 50, 56);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.main .left .user{
    height: 80px;
    font-size: 20px;
    line-height: 80px;
    color: white;
    padding: 0 20px;
}

.main .left .search{
    height: 40px;
    padding: 0 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main .left .search input{
    height: 34px;
    width: 200px;
    line-height: 34px;
    font-size: 14px;
    color: white;
    background-color: rgb(38, 41, 46);

    border: none;
    outline: none;

    padding-left: 10px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.main .left .search button{
    height: 34px;
    width: 34px;
    border: none;
    outline: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: rgb(38, 41, 46);
    background-image: url("../pic/search.png");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.main .left .search button:active{
    background-color: gray;
}

.main .left .tab{
    height: 50px;
    display: flex;
    align-items: center;
}

.main .left .tab .tab-session{
    height: 100%;
    width: 50%;
    background-image: url("../pic/session2.png");
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-position: center center;
}

.main .left .tab .tab-friend{
    height: 100%;
    width: 50%;
    background-image: url("../pic/friend1.png");
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.main .left .list{
    height: 470px;
    overflow: auto;/*滚动条*/
}

.main .left .list li{
    height: 60px;
    padding: 10px 20px;
    color: white;
    border-top: 1px solid black;
}

.main .left .list .selected{    
    background-color: rgb(60, 68, 78);   
}


.main .left .list li h3,.main .left .list li p{
    height: 20px;
    font-size: 14px;
    line-height: 20px;
}

.main .left .list li h4{
    height: 30px;
    /* font-size: 20px; */
    line-height: 40px;
}

.hide{
    /*自动隐藏*/
    display: none;
}

/*隐藏滚动条*/
::-webkit-scrollbar{
    display: none;
}

.main .right{
    width: 610px;
    height: 100%;
    padding: 0 20px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.main>.right>.title {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
   }

.main>.right>.message-show {
    height: 450px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    /*内容太多，自动进行滚动*/
    overflow: auto;
    padding-bottom: 5px;
    padding-top: 5px;
}

.main>.right>.message-show>.message {
    width:auto;
    /*宽度默认100%，高度不显式设定，后续一条消息的内容有多有少*/  
    margin-bottom: 1px;
    display: flex;/*消息靠左靠右*/
}
.main>.right>.message-show>.message-left {
    justify-content: flex-start;
    margin-right: 50px;
}
.main>.right>.message-show>.message-right {
    justify-content: flex-end;
    margin-left: 50px; 
}

.main>.right>.message-show>.message>.box {
    /*box为凸显左右效果，宽度不能是100%*/
    width: auto;
    display: flex;
    flex-direction: column;
}

.main>.right>.message-show>.message-left>.box>h4 {
    font-weight: normal;/*去掉加粗效果*/
    height: 20px;
    line-height: 17px;
    font-size: 16px;
    align-self: flex-start;
}

.main>.right>.message-show>.message-right>.box>h4 {
    font-weight: normal;/*去掉加粗效果*/
    height: 20px;
    line-height: 17px;
    font-size: 16px;
    align-self: flex-end;
}

.main>.right>.message-show>.message>.box>p {
    padding: 10px;
    border-radius: 10px;
}

/* 左侧消息背景为⽩⾊ */
.main>.right>.message-show>.message-left>.box>p {
    background-color: #fff;
}
/* 右侧消息背景为绿⾊ */
.main>.right>.message-show>.message-right>.box>p {
    background-color: rgb(150, 223, 76);
}

.main>.right>.message-input {
    display: block;/*转换为块级元素后设置高度*/
    width: 100%;
    height: 100px;
    border: none;
    outline: none;
    margin-top: 5px;
    background-color: rgb(238, 238, 238);
    font-size: 17px;
    padding: 10px;
    resize: none;
}

.main>.right>.ctrl{
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.main>.right>.ctrl button{
    height: 29px;
    width: 85px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    /* margin-bottom: 2px; */
}

.main>.right>.ctrl button:active{
    height: 29px;
    width: 85px;
    background-color: grey;
    border: 1px solid #ccc;
    border-radius: 5px;
}